package com.huqing.icu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huqing.icu.dto.CommunityPostDto;
import com.huqing.icu.dto.CommunityPostQueryDto;
import com.huqing.icu.model.CommunityPost;

import java.util.List;

public interface CommunityPostMapper extends BaseMapper<CommunityPost> {

    Integer getNumByCondition(CommunityPostQueryDto queryDto);

    List<CommunityPostDto> selectByCondition(CommunityPostQueryDto queryDto);

    Integer delete(Long id, Long userId);


}
